package com.cy.detectsys.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Data;

/**
 * 
 * @TableName tc_task
 */
@TableName(value ="tc_task")
@Data
public class TcTask implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 探测任务 编号
     */
    private String tcTackNum;

    /**
     * 探测 参数
     */
    private String param;

    /**
     * 所属探测包的id
     */
    private Integer packageId;

    private String probe;

    /**
     * 
     */
    private String probenodeName;

    /**
     * 
     */
    private String proxynodeName;

    /**
     * 
     */
    private String status;

    /**
     * 创建人
     */
    private String createUser;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        TcTask other = (TcTask) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getTcTackNum() == null ? other.getTcTackNum() == null : this.getTcTackNum().equals(other.getTcTackNum()))
            && (this.getParam() == null ? other.getParam() == null : this.getParam().equals(other.getParam()))
            && (this.getPackageId() == null ? other.getPackageId() == null : this.getPackageId().equals(other.getPackageId()))
            && (this.getProbenodeName() == null ? other.getProbenodeName() == null : this.getProbenodeName().equals(other.getProbenodeName()))
            && (this.getProxynodeName() == null ? other.getProxynodeName() == null : this.getProxynodeName().equals(other.getProxynodeName()))
            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
            && (this.getCreateUser() == null ? other.getCreateUser() == null : this.getCreateUser().equals(other.getCreateUser()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getTcTackNum() == null) ? 0 : getTcTackNum().hashCode());
        result = prime * result + ((getParam() == null) ? 0 : getParam().hashCode());
        result = prime * result + ((getPackageId() == null) ? 0 : getPackageId().hashCode());
        result = prime * result + ((getProbenodeName() == null) ? 0 : getProbenodeName().hashCode());
        result = prime * result + ((getProxynodeName() == null) ? 0 : getProxynodeName().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        result = prime * result + ((getCreateUser() == null) ? 0 : getCreateUser().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", tcTackNum=").append(tcTackNum);
        sb.append(", param=").append(param);
        sb.append(", packageId=").append(packageId);
        sb.append(", probenodeName=").append(probenodeName);
        sb.append(", proxynodeName=").append(proxynodeName);
        sb.append(", status=").append(status);
        sb.append(", createUser=").append(createUser);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}